package com.objecttopersonsystem.mapper;

import com.objecttopersonsystem.pojo.Record;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RecordMapper {

    @Select("select * from objecttopersonsystem.record")
    List<Record> list();

    @Delete("delete from objecttopersonsystem.record where id = #{id}")
    void deleteById(Integer id);
}
